class Person:
    # 成员属性
    def __init__(self,name,age:int,sex="男"):
      self.name=name
      self.age=age
      self.sex=sex
    def show_info(self):
        print(f"姓名是:{self.name},性别:{self.sex},年龄是{self.age}")

p1=Person("张三",20)
p1.show_info()
p2=Person("李四",19,"女")
p2.show_info()
